home *** CD-ROM | disk | FTP | other *** search
/ AmigActive 23 / AACD 23.iso / AACD / Programming / tek / kn / elate / visual / destroyvisual.asm < prev    next >
Encoding:
Assembly Source File  |  2001-05-12  |  1.4 KB  |  61 lines

  1.  
  2.     .include 'taort'
  3.     .include 'ave/toolkit/toolkit.inc'
  4.     .include 'lib/tek/kn/elate/visual.inc'
  5.  
  6. ;=============================================================================
  7. ;-----------------------------------------------------------------------------
  8. ;    TEKlib
  9. ;    (C) 1999-2001 TEK neoscientists
  10. ;    all rights reserved.
  11. ;
  12. ;    void kn_visualdestroy(TAPTR visual)
  13. ;
  14. ;-----------------------------------------------------------------------------
  15. ;=============================================================================
  16.  
  17.     tool 'lib/tek/kn/visual/destroyvisual',VP,0
  18.  
  19. ;-----------------------------------------------------------------------------
  20.  
  21.     ent p0 : -
  22.  
  23.     defbegin
  24.     defp visual
  25.     defp ave,temp
  26.     
  27.         bcn    visual eq 0,_dw_exit
  28.  
  29.         cpy.p    [visual+vis_ave],ave
  30.         bcn    ave eq 0,_dw_noave
  31.  
  32.         cpy.p    [visual+vis_toolkit],temp
  33.         bcn    temp eq 0,_dw_notkit
  34.  
  35.         ncall    ave,closetoolkit,(ave,temp:-)
  36.  
  37. _dw_notkit:    cpy.p    [visual+vis_app],temp
  38.         ncall    ave,close,(ave,temp:i~)
  39.  
  40. _dw_noave:    cpy.p    [visual+vis_buffer],temp
  41.         qcall    lib/free,(temp:-)
  42.  
  43.         cpy.p    [visual+vis_buffer2],temp
  44.         qcall    lib/free,(temp:-)
  45.  
  46.         cpy.p    [visual+vis_font],temp
  47.         bcn    temp eq 0,_dw_nofont
  48.         qcall    ave/font/close,(temp:-)
  49. _dw_nofont:
  50.         qcall    lib/free,(visual:-)
  51.  
  52. _dw_exit:
  53.         ret
  54.         
  55.     defend
  56.     toolend
  57.  
  58. ;-----------------------------------------------------------------------------
  59. ;=============================================================================
  60.